<%= render "/shared/header" %>
<div class="mainbox" id="user">
  <div class="container container-fluid">
    <div class="row">
      <div class="col-xs-9">
        <div class="content">
          <div class="box">
            <%= simple_form_for(@user,:html => {:class => 'user'}) do |f| %>
              <fieldset>
                <legend>注册新用户</legend>
                <%= render "/shared/error_messages", :target => @user %>
                <%= f.input :name, :label => "用户名" ,:placeholder => '用户名',
			        :label_html => { :class => 'col-xs-2' },
              :wrapper_html => { :class => 'form-group' } ,
              :input_html =>  { :class => ' form-control col-xs-7'}
              %>
                <%= f.input :email, :label => "Email" ,:placeholder => '用户密码找回',
              :label_html => { :class => 'col-xs-2' },
              :wrapper_html => { :class => 'form-group' } ,
              :input_html =>  { :class => ' form-control'}
              %>
                <%= f.input :password, :as => :password , :label => "密码" ,:placeholder => '密码',
              :label_html => { :class => 'col-xs-2' },
              :wrapper_html => { :class => 'form-group' } ,
              :input_html =>  { :class => ' form-control'}
              %>
                <%= f.input :password_confirmation, :as => :password , :label => "确认密码" ,:placeholder => '确认密码',
              :label_html => { :class => 'col-xs-2' },
              :wrapper_html => { :class => 'form-group' } ,
              :input_html =>  { :class => ' form-control'}
              %>
                <%= f.input :captcha, :label => "验证码" ,:placeholder => '输入验证码',
            :label_html => { :class => 'col-xs-2' },
            :wrapper_html => { :class => 'form-group' } ,
            :input_html =>  { :class => ' form-control'}
            %>
                <div class="control-group user_name form-group">
                  <label class="control-label col-xs-2" for="user_name">
                  </label>
                  <div class="controls">
                    <%= f.submit "提交注册信息", :class => "btn btn-primary", :'data-disable-with' => "提交中..." %>
                  </div>
                </div>
              </fieldset>
            <% end %>
          </div>
          <div class="tag label btn-info md">
            <span>kilo</span>
            <a style="opacity: 0.6;"><i class="remove glyphicon glyphicon-remove-sign glyphicon-white"></i></a>
          </div>
        </div>
      </div>
      <div class="col-xs-3">
        <fieldset>
          <legend>注册新用户?</legend>
        </fieldset>
        <p style="line-height:20px;">
          <%=link_to '登录', login_users_path %><br />
          <!--<%=link_to '注册会员', new_users_path %><br />
          <%=link_to '忘记密码了?', reset_pwd_users_path %><br />-->
        </p>
      </div>
    </div>
  </div>
</div>
<%= render "/shared/footer" %>
